﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Home/Home.Master" AutoEventWireup="true"
    CodeBehind="Price.aspx.cs" Inherits="Project.Home.WebForm8" %>

<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <h1>
        Calculate Price</h1>
    <h2>
        I.ROUTE</h2>
    <table style="width: 56%;">
        <tr>
            <td style="width: 322px">
                From:
                <asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" DataSourceID="DataRoute"
                    DataTextField="Location1" DataValueField="Location1" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;&nbsp; To:
                <asp:DropDownList ID="DropDownList2" runat="server" AutoPostBack="True" DataSourceID="DataRoute"
                    DataTextField="Location1" DataValueField="Location1" OnSelectedIndexChanged="DropDownList2_SelectedIndexChanged">
                </asp:DropDownList>
                &nbsp;&nbsp;
                <asp:LinqDataSource ID="DataRoute" runat="server" ContextTypeName="Project.DataPOFDataContext"
                    EntityTypeName="" Select="new (Location1)" TableName="Locations">
                </asp:LinqDataSource>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 322px">
                Distance (Km):&nbsp;
                <asp:Label ID="Label1" runat="server" Text="0"></asp:Label>
            </td>
            <td>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td style="width: 322px">
                Price (VND):
                <asp:Label ID="Label2" runat="server" Text="0"></asp:Label>
            </td>
            <td>
                Total (VND):
                <asp:Label ID="Label5" runat="server" Text="0"></asp:Label>
            </td>
        </tr>
    </table>
    </BR>
    <h2>
        II. PRICE</h2>
    Volume (Kg):&nbsp;&nbsp;
    <asp:TextBox ID="TextBox1" runat="server" AutoPostBack="True" OnTextChanged="TextBox1_TextChanged"></asp:TextBox>
    <br />
    Price (VND):
    <asp:Label ID="Label3" runat="server" Text="0"></asp:Label>
    <br />
    <br />
    <h2>
        III. Service</h2>
    Service:
    <asp:DropDownList ID="DropDownList3" runat="server" AutoPostBack="True" DataSourceID="DataService"
        DataTextField="Service1" DataValueField="Service1" OnSelectedIndexChanged="DropDownList3_SelectedIndexChanged">
    </asp:DropDownList>
    <br />
    Price (VND):
    <asp:Label ID="Label4" runat="server" Text="0"></asp:Label>
    &nbsp;<asp:LinqDataSource ID="DataService" runat="server" ContextTypeName="Project.DataPOFDataContext"
        EntityTypeName="" Select="new (Service1)" TableName="Services">
    </asp:LinqDataSource>
    </br>
</asp:Content>
